package in.freshstart.java.training.loops;

import java.math.BigInteger;
public class DispalyFirst100FibonacciNumbers {
	public static void main(String[] args) {
		int n = 100;
		char c = 'A';
		int j = (int) c;
		System.out.println("Input vlaue is" + n);
		BigInteger f1 = BigInteger.valueOf(0);
		BigInteger f2 = BigInteger.valueOf(1);
		BigInteger f3 = BigInteger.valueOf(0);
		System.out.println(f1);
		System.out.println(f2);
		for (int i = 0; i < n; i++) {
			f3 = f1.add(f2);
			System.out.println(f3);
			f1 = f2;
			f2 = f3;

		}
	}

}
